package com.coding.dao;

import com.coding.pojo.Poet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PoetDao {
    int deleteByPrimaryKey(Integer poet_id);

    int insert(Poet record);

    int insertSelective(Poet record);

    Poet selectByPrimaryKey(Integer poet_id);

    Poet selectByName(String name);

    List<Poet> getpoetlist(@Param("offset") int offset, @Param("limit") int limit);

    List<Poet> queryAlllist(Poet poet);

    int updateByPrimaryKeySelective(Poet record);

    int updateByPrimaryKey(Poet record);
}